package com.ruoyi.event.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.ExcelDictFormat;
import com.ruoyi.common.annotation.UserDrugInfo;
import com.ruoyi.common.convert.ExcelDictConvert;
import lombok.Data;

import java.util.Date;


/**
 * 严重违反协议视图对象 event_yzwfxy
 *
 * @author strongme
 * @date 2023-02-04
 */
@Data
@ExcelIgnoreUnannotated
public class EventYzwfxyVo implements EventInfo {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @ExcelProperty(value = "id")
    private Long yzwfxyId;

    /**
     * 吸毒人员id
     */
    @ExcelProperty(value = "吸毒人员id")
    private Long userId;

    @UserDrugInfo
    public Object getUserInfo() {
        return userId;
    }

    /**
     * 违反协议时间
     */
    @ExcelProperty(value = "违反协议时间")
    private Date wfxysj;

    /**
     * 违反协议类型
     */
    @ExcelProperty(value = "违反协议类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "yzwfxylx")
    private String wfxylx;

    /**
     * 违反协议事实
     */
    @ExcelProperty(value = "违反协议事实")
    private String wfxyss;

    /**
     * 处理情况
     */
    @ExcelProperty(value = "处理情况")
    private String clqk;

    /**
     * 劝解书
     */
    @ExcelProperty(value = "劝解书")
    private String qjs;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;


    @Override
    public Long getId() {
        return yzwfxyId;
    }

    @Override
    public String getText() {
        return wfxyss;
    }

    @Override
    @JsonFormat(pattern = "yyyy-MM-dd")
    public Date getTime() {
        return wfxysj;
    }
}
